package com.example.testhiber.initPackage.config.model.entity;

import com.example.testhiber.initPackage.config.model.annotation.Des;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;

@MappedSuperclass
public abstract class DicSelectModel extends BaseDicSelectModel{

	/**
	 * 
	 */
	@Transient
	private static final long serialVersionUID = 1L;

	
	/** The code. */
	@Id
	@Des("代码")
	@Column(length = 100)
	private String code;
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	
	@Override
	public String getId() {
		return code;
	}
}
